#include "mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
{
    stroka.setText("Voronov Vitaliy");
    QSlider *slider = new QSlider(Qt::Horizontal);
    slider->setRange(0, 150);
    slider->setValue(0);
    connect(slider, SIGNAL(valueChanged(int)),&stroka, SLOT(change(int)));
    layout.addWidget(&stroka);
    layout.addWidget(slider);
    widget.setLayout(&layout);
    setCentralWidget(&widget);
}

MainWindow::~MainWindow()
{

}
